package com.sky.controller;

import com.sky.dao.ActorMapper;
import com.sky.service.PageHelpService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
@Slf4j
public class HelloController {


    @Autowired
    private ActorMapper actorMapper;
    @Autowired
    private PageHelpService pageHelpService;

    @GetMapping("/index")
    public String hello() {
        log.info("查询结果是 : {}", pageHelpService.users().getList());
        return "index";
    }
}
